<template>
	<view class="wf-box">
		<HeadNav titleName="编辑自定义代币" :navBarHeight="navBarHeight"></HeadNav>
		
		<view class="main" :style="{ paddingTop: navBarHeight }">
			<view class="main-ctr">
				<view class="ctr-iv">
					<view class="iv-up">
						<view>智能合约地址</view>
						<view></view>
					</view>
					<view class="iv-add-wrap">
						<textarea name="" id=""></textarea>
						<!-- <image src="../../static/img/me-23.png"></image> -->
					</view>
				</view>
				
				<view class="ctr-iv">
					<view class="iv-up">
						<view>代币符号</view>
						<view></view>
					</view>
					<view class="iv-fill">
						<input type="text">
					</view>
				</view>
				
				<view class="ctr-iv">
					<view class="iv-up">
						<view>精度</view>
						<view></view>
					</view>
					<view class="iv-fill">
						<input type="text">
					</view>
				</view>
				
				<view class="ctr-footer">
					<view class="footer-pd">
						<view class="remove" @click="removeCoin">删除</view>
						<view class="save">保存</view>
					</view>
					
					
				</view>
			</view>
		</view>
		
		<uni-popup ref="popup" type="center">
			<view class="popup-box">
				<view class="popup-title">确认删除该代币？</view>
				<view class="popup-sub">删除后需要您重新手动输入代币信息进 行添加</view>
				<view class="popup-footer">
					<view class="cancle" @click="closePopup()">取消</view>
					<view class="confim">确认删除</view>
				</view>
			</view>
		</uni-popup>
		
		
	</view>
</template>

<script>
	import HeadNav from "@/components/HeadNav"
	import navBarMixin from '@/mixin/navBarMixin.js'
	export default {
		data() {
			return {}
		},
		components: {
			HeadNav
		},
		mixins: [navBarMixin],
		methods: {
			back() {
				uni.navigateBack()
			},
			closePopup() {
				this.$refs.popup.close()
			},
			removeCoin() {
				this.$refs.popup.open()
			}
		}
	}
</script>

<style lang="scss" scoped>
	.wf-box {
		overflow: hidden;
		padding-bottom: 36rpx;
		
		.main {
			padding: 0 30rpx;
			margin-top: 126rpx;
			.main-ctr {
				padding: 30rpx;
				min-height: 1040rpx;
				padding-top: 0;
				overflow: hidden;
				padding-bottom: 50rpx;
				border-radius: 10rpx;
				background: #fff;
				box-sizing: border-box;
				.ctr-iv {
					margin-top: 40rpx;
					.iv-up {
						display: flex;
						justify-content: space-between;
						view:first-child {
							color: #333;
							font-size: 28rpx;
						}
						view:last-child {
							color: $theme-color-a;
							font-size: 24rpx;
						}
					}
					.iv-wn {
						padding: 0 30rpx;
						margin-top: 20rpx;
						height: 80rpx;
						display: flex;
						align-items: center;
						background: #F8F8F8;
						border-radius: 10rpx;
						.wn-img {
							margin-right: 20rpx;
							width: 48rpx;
							height: 48rpx;
						}
						text {
							font-size: 28rpx;
						}
						.wn-more {
							margin-left: auto;
							width: 26rpx;
							height: 14rpx;
						}
					}
					.iv-add-wrap {
						padding: 35rpx;
						height: 208rpx;
						margin-top: 20rpx;
						display: flex;
						box-sizing: border-box;
						background: #F8F8F8;
						border-radius: 10rpx;
						textarea {
							width: 100%;
							height: 100%;
						}
						image {
							padding: 0 4rpx;
							width: 48rpx;
							height: 48rpx;
						}
					}
					.iv-fill {
						padding: 0 30rpx;
						height: 80rpx;
						margin-top: 20rpx;
						border-radius: 10rpx;
						background: #F8F8F8;
						input {
							flex: 1;
							height: 100%;
						}
						
					}
				}
				.ctr-small {
					color: #999999;
					font-size: 20rpx;
					margin-top: 20rpx;
					text {
						color: #FF534E;
					}
				}
				.ctr-footer {
					display: flex;
					margin-top: 200rpx;
					height: 80rpx;
					padding: 0 10rpx;
					.footer-pd {
						width: 100%;
						display: flex;
						justify-content: space-between;
						view {
							width: 238rpx;
							height: 80rpx;
							line-height: 80rpx;
							text-align: center;
							border-radius: 40rpx;
							&.remove {
								border: 2rpx solid $theme-color-a;
								color: $theme-color-a;
							}
							&.save {
								background: $theme-color-a;
								color: #fff;
							}
						}
					}
					// background: $theme-color-a;
					
				}
			}
		}
	
		.network-box {
			min-height: 920rpx;
			background-color: #fff;
			border-radius: 24rpx 24rpx 0 0;
			overflow: hidden;
		
			.network-title {
				position: relative;
				height: 160rpx;
				line-height: 160rpx;
				text-align: center;
				color: #333;
				font-size: 32rpx;
				font-weight: bold;
				background: linear-gradient(180deg, #EBF3FF 0%, #FFFFFF 100%);
		
				image {
					position: absolute;
					width: 40rpx;
					height: 40rpx;
					right: 30rpx;
					top: 60rpx;
				}
			}
		
			.network-scroll {
				height: 504rpx;
				padding: 0 30rpx;
		
				.scroll-Y {
					height: 100%;
					overflow: hidden;
				}
		
				.scroll-view-item {
					height: 126rpx;
					display: flex;
					align-items: center;
					border-bottom: 2rpx solid #eee;
		
					.coin-img {
						width: 56rpx;
						height: 56rpx;
					}
		
					text {
						margin-left: 20rpx;
					}
		
					.status {
						margin-left: auto;
		
						image {
							width: 30rpx;
							height: 30rpx;
						}
					}
		
		
				}
			}
		
			.network-add {
				padding: 0 65rpx;
				margin-top: 90rpx;
		
				.network-btn {
					background: $theme-color-a;
					height: 80rpx;
					border-radius: 40rpx;
					display: flex;
					align-items: center;
		
					&>view {
						display: flex;
						align-items: center;
						width: max-content;
						margin: 0 auto;
						color: #fff;
						font-size: 28rpx;
		
						text {
							font-weight: bold;
							font-size: 28rpx;
						}
		
					}
		
					image {
						margin-right: 18rpx;
						width: 20rpx;
						height: 20rpx;
					}
				}
		
			}
			
			&.transit {
				min-height: 700rpx;
				.transit-search {
					height: 80rpx;
					margin: 0 30rpx;
					background: #F4F4F4;
					border-radius: 40rpx;
					padding: 0 30rpx;
					display: flex;
					align-items: center;
					image {
						width: 48rpx;
						height: 48rpx;
					}
					input {
						flex: 1;
						margin-left: 20rpx;
						height: 100%;
					}
				}
			}
		
		}
	
		.popup-box {
			width: 560rpx;
			// height: 528rpx;
			padding: 0 50rpx;
			padding-top: 140rpx;
			padding-bottom: 40rpx;
			border-radius: 20rpx;
			box-sizing: border-box;
			background: #fff;
			// background: url('../../static/img/me-32.png') no-repeat;
			// background-size: 100% 100%;
			.popup-title {
				font-size: 32rpx;
				color: #333;
				font-weight: bold;
				text-align: center;
			}
			.popup-sub {
				margin-top: 36rpx;
				color: #666;
				font-size: 28rpx;
				text-align: center;
			}
			.popup-footer {
				display: flex;
				justify-content: space-between;
				margin-top: 70rpx;
				.cancle {
					width: 200rpx;
					line-height: 76rpx;
					text-align: center;
					border: 2rpx solid #3F93FF;
					border-radius: 40rpx;
				}
				.confim {
					width: 200rpx;
					line-height: 76rpx;
					text-align: center;
					border-radius: 40rpx;
					background: #3F93FF;
					color: #fff;
				}
			}
		}
	}
</style>